package cn.edu.wynu;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {
    @Bean
    public Fish fish() {
        Fish fish = new Fish();
        fish.setName("鲨鱼");
        fish.setAge(20);
        return fish;
    }
}